package com.tian.print.http.response;

public class Response<T> {
    /**
     * code为0表示 成功，其他都是异常
     */
    private int Code;
    private String Msg;
    private T Data;

    public int getCode() {
        return Code;
    }

    public void setCode(int code) {
        this.Code = code;
    }

    public String getMsg() {
        return Msg;
    }

    public void setMsg(String msg) {
        this.Msg = msg;
    }

    public T getData() {
        return Data;
    }

    public void setData(T data) {
        this.Data = data;
    }

    @Override
    public String toString() {
        return "Response{" +
                "Code=" + Code +
                ", Msg='" + Msg + '\'' +
                ", Data=" + Data +
                '}';
    }
}
